﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace StoryMaker.Data
{
    internal class CRUDService<T> : ICRUDService<T>
    {
        private string _lastPath;
        public string LastPath
        {
            get { return _lastPath; }
        }

        public void Save(T item)
        {
            if (string.IsNullOrWhiteSpace(_lastPath))
            {
                SaveAs(item);
            }
        }

        public void SaveAs(T item)
        {

        }
        public T Open()
        {
            throw new NotImplementedException();
        }
    }
}
